#ifndef __array_h__
#define __array_h__ 

#include <stdint.h>

struct repeat_array;

int repeat_array_block();
int repeat_array_size(struct repeat_array *array);

void repeat_array_init(struct repeat_array *array);
void repeat_array_free(struct repeat_array *array);

void repeat_array_pushi32(struct repeat_array *array, const char *name, int tag, int value);
void repeat_array_pushi64(struct repeat_array *array, const char *name, int tag, int64_t value);
void repeat_array_pushstr(struct repeat_array *array, const char *name, int tag, const char *value);

struct chumk *combine_wmessage_array(struct repeat_array *array, struct chumk *ck, int *sz);

#endif
